package com.xqboss.chain.domain.chain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.xqboss.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.persistence.Id;
import java.math.BigInteger;

/**
 * <p>
 * 
 * </p>
 *
 * @author ct
 * @since 2023-06-26
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="SysMemberChain对象", description="")
public class SysUserChain extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "用户id")
    @TableId(value = "user_id")
    @Id
    private Long userId;

    @ApiModelProperty(value = "链账户，部署合约之后的账户")
    private String address;

    @ApiModelProperty(value = "链账户公钥")
    private String publicKey;

    @ApiModelProperty(value = "链账户私钥")
    private String privateKey;

    @ApiModelProperty(value = "链账户助记词")
    private String mnemonic;

    @ApiModelProperty(value = "账户是否已经上链")
    private Boolean upChain;

    @ApiModelProperty(value = "账户能量值")
    private BigInteger balance;
}
